package com.lib.activity.map;

import com.baidu.mapapi.map.MapView;
import com.baidu.platform.comapi.basestruct.GeoPoint;

import android.app.Activity;
import android.os.Bundle;

public abstract class MapBaseActivity extends Activity {

  protected GeoPoint defaultGeoPoint = new GeoPoint((int) (31.2783 * 1e6), (int) (120.7403 * 1e6));

  @Override
  protected void onPause() {
    getMapview().onPause();
    super.onPause();
  }

  @Override
  protected void onResume() {
    getMapview().onResume();
    super.onResume();
  }

  @Override
  protected void onSaveInstanceState(Bundle outState) {
    getMapview().onSaveInstanceState(outState);
    super.onSaveInstanceState(outState);
  }

  @Override
  protected void onRestoreInstanceState(Bundle savedInstanceState) {
    getMapview().onRestoreInstanceState(savedInstanceState);
    super.onRestoreInstanceState(savedInstanceState);
  }


  @Override
  protected void onDestroy() {
    super.onDestroy();
  }

  public abstract MapView getMapview();
}
